package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Students1Mapper;
import com.ruoyi.system.domain.Students1;
import com.ruoyi.system.service.IStudents1Service;

/**
 * 学生表1Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
@Service
public class Students1ServiceImpl implements IStudents1Service 
{
    @Autowired
    private Students1Mapper students1Mapper;

    /**
     * 查询学生表1
     * 
     * @param studentId 学生表1主键
     * @return 学生表1
     */
    @Override
    public Students1 selectStudents1ByStudentId(Long studentId)
    {
        return students1Mapper.selectStudents1ByStudentId(studentId);
    }

    /**
     * 查询学生表1列表
     * 
     * @param students1 学生表1
     * @return 学生表1
     */
    @Override
    public List<Students1> selectStudents1List(Students1 students1)
    {
        return students1Mapper.selectStudents1List(students1);
    }

    /**
     * 新增学生表1
     * 
     * @param students1 学生表1
     * @return 结果
     */
    @Override
    public int insertStudents1(Students1 students1)
    {
        return students1Mapper.insertStudents1(students1);
    }

    /**
     * 修改学生表1
     * 
     * @param students1 学生表1
     * @return 结果
     */
    @Override
    public int updateStudents1(Students1 students1)
    {
        return students1Mapper.updateStudents1(students1);
    }

    /**
     * 批量删除学生表1
     * 
     * @param studentIds 需要删除的学生表1主键
     * @return 结果
     */
    @Override
    public int deleteStudents1ByStudentIds(Long[] studentIds)
    {
        return students1Mapper.deleteStudents1ByStudentIds(studentIds);
    }

    /**
     * 删除学生表1信息
     * 
     * @param studentId 学生表1主键
     * @return 结果
     */
    @Override
    public int deleteStudents1ByStudentId(Long studentId)
    {
        return students1Mapper.deleteStudents1ByStudentId(studentId);
    }
}
